<!DOCTYPE html>
<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org" xmlns:sec="http://www.thymeleaf.org/extras/spring-security">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>SimpleHire - 智能简历评分系统</title>
    
    <!-- Bootstrap CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <!-- Bootstrap Icons -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
    <!-- Google Fonts -->
    <link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap" rel="stylesheet">
    
    <style>
        :root {
            --primary-color: #2563eb;
            --secondary-color: #64748b;
            --success-color: #059669;
            --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        .hero-section {
            background: var(--gradient-primary);
            color: white;
            padding: 100px 0;
            position: relative;
            overflow: hidden;
        }
        
        .hero-section::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="%23ffffff" opacity="0.1"><polygon points="1000,100 1000,0 0,100"/></svg>');
            background-size: cover;
        }
        
        .hero-content {
            position: relative;
            z-index: 2;
        }
        
        .hero-title {
            font-size: 3.5rem;
            font-weight: 700;
            margin-bottom: 1.5rem;
            text-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }
        
        .hero-subtitle {
            font-size: 1.25rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        
        .btn-hero {
            padding: 1rem 2.5rem;
            font-size: 1.1rem;
            font-weight: 600;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.2);
        }
        
        .btn-hero:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 25px rgba(0,0,0,0.3);
        }
        
        .btn-primary-hero {
            background: white;
            color: var(--primary-color);
            border: 2px solid white;
        }
        
        .btn-outline-hero {
            background: transparent;
            color: white;
            border: 2px solid white;
        }
        
        .btn-outline-hero:hover {
            background: white;
            color: var(--primary-color);
        }
        
        .features-section {
            padding: 80px 0;
            background: #f8fafc;
        }
        
        .feature-card {
            background: white;
            border-radius: 20px;
            padding: 2.5rem;
            text-align: center;
            border: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            transition: all 0.3s ease;
            height: 100%;
        }
        
        .feature-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 20px 40px rgba(0,0,0,0.15);
        }
        
        .feature-icon {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            font-size: 2rem;
            color: white;
        }
        
        .feature-icon.ai {
            background: linear-gradient(135deg, #667eea, #764ba2);
        }
        
        .feature-icon.upload {
            background: linear-gradient(135deg, #f093fb, #f5576c);
        }
        
        .feature-icon.analysis {
            background: linear-gradient(135deg, #4facfe, #00f2fe);
        }
        
        .feature-icon.report {
            background: linear-gradient(135deg, #43e97b, #38f9d7);
        }
        
        .feature-title {
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 1rem;
            color: #1f2937;
        }
        
        .feature-description {
            color: #6b7280;
            line-height: 1.6;
        }
        
        .stats-section {
            background: var(--gradient-secondary);
            color: white;
            padding: 60px 0;
        }
        
        .stat-item {
            text-align: center;
            margin-bottom: 2rem;
        }
        
        .stat-number {
            font-size: 3rem;
            font-weight: 700;
            display: block;
        }
        
        .stat-label {
            font-size: 1.1rem;
            opacity: 0.9;
        }
        
        .cta-section {
            padding: 80px 0;
            background: white;
        }
        
        .cta-card {
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
            border-radius: 20px;
            padding: 3rem;
            text-align: center;
        }
        
        .cta-title {
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }
        
        .cta-subtitle {
            font-size: 1.2rem;
            margin-bottom: 2rem;
            opacity: 0.9;
        }
        
        .navbar {
            background: rgba(255, 255, 255, 0.95) !important;
            backdrop-filter: blur(10px);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        }
        
        .navbar-brand {
            font-weight: 700;
            font-size: 1.5rem;
            color: var(--primary-color) !important;
        }
        
        .navbar-nav .nav-link {
            color: #374151 !important;
            font-weight: 500;
            margin: 0 0.5rem;
            transition: color 0.3s ease;
        }
        
        .navbar-nav .nav-link:hover {
            color: var(--primary-color) !important;
        }
        
        .btn-navbar {
            border-radius: 25px;
            padding: 0.5rem 1.5rem;
            font-weight: 500;
        }
        
        .footer {
            background: #1f2937;
            color: #9ca3af;
            padding: 3rem 0 2rem;
        }
        
        .footer h5 {
            color: white;
            margin-bottom: 1rem;
        }
        
        .footer a {
            color: #9ca3af;
            text-decoration: none;
            transition: color 0.3s ease;
        }
        
        .footer a:hover {
            color: white;
        }
        
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem;
            }
            
            .hero-subtitle {
                font-size: 1.1rem;
            }
            
            .btn-hero {
                padding: 0.75rem 2rem;
                font-size: 1rem;
            }
            
            .feature-card {
                padding: 2rem;
                margin-bottom: 2rem;
            }
            
            .cta-title {
                font-size: 2rem;
            }
        }
    </style>
</head>
<body>
    <!-- Navigation -->
    <nav class="navbar navbar-expand-lg navbar-light fixed-top">
        <div class="container">
            <a class="navbar-brand" href="/">
                <i class="bi bi-robot me-2"></i>SimpleHire
            </a>
            
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="#features">功能特色</a>
                    </li>
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" href="/resume/analysis">
                            <i class="bi bi-file-earmark-text me-1"></i>简历分析
                        </a>
                    </li>
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" href="/interview">
                            <i class="bi bi-chat-dots me-1"></i>开始面试
                        </a>
                    </li>
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" href="/job-matching">
                            <i class="bi bi-search me-1"></i>岗位匹配
                        </a>
                    </li>
                    <li class="nav-item" sec:authorize="isAuthenticated()">
                        <a class="nav-link" href="/reports">
                            <i class="bi bi-file-earmark-bar-graph me-1"></i>报告中心
                        </a>
                    </li>
                    <li class="nav-item" sec:authorize="!isAuthenticated()">
                        <a class="nav-link" href="/login">
                            <i class="bi bi-box-arrow-in-right me-1"></i>登录
                        </a>
                    </li>
                    <li class="nav-item" sec:authorize="!isAuthenticated()">
                        <a href="/register" class="btn btn-primary btn-navbar ms-2">
                            <i class="bi bi-person-plus me-1"></i>注册
                        </a>
                    </li>
                    <li class="nav-item dropdown" sec:authorize="isAuthenticated()">
                        <a class="nav-link dropdown-toggle" href="#" role="button" data-bs-toggle="dropdown">
                            <i class="bi bi-person-circle me-1"></i>
                            <span sec:authentication="name">用户</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a class="dropdown-item" href="/profile">
                                <i class="bi bi-person me-2"></i>个人资料
                            </a></li>
                            <li><hr class="dropdown-divider"></li>
                            <li>
                                <form th:action="@{/logout}" method="post" class="d-inline">
                                    <button type="submit" class="dropdown-item">
                                        <i class="bi bi-box-arrow-right me-2"></i>退出登录
                                    </button>
                                </form>
                            </li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>
    
    <!-- Hero Section -->
    <section class="hero-section">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-lg-6">
                    <div class="hero-content">
                        <h1 class="hero-title">AI驱动的<br>简历评分系统</h1>
                        <p class="hero-subtitle">
                            利用先进的人工智能技术，为您的简历提供专业的评分和改进建议，
                            助力您在求职路上脱颖而出。
                        </p>
                        <div class="d-flex flex-wrap gap-3">
                            <a href="/resume/analysis" class="btn btn-primary-hero btn-hero" sec:authorize="isAuthenticated()">
                                <i class="bi bi-file-earmark-text me-2"></i>简历分析
                            </a>
                            <a href="/interview" class="btn btn-outline-hero btn-hero" sec:authorize="isAuthenticated()">
                                <i class="bi bi-play-circle me-2"></i>AI面试
                            </a>
                            <a href="/job-matching" class="btn btn-outline-hero btn-hero" sec:authorize="isAuthenticated()">
                                <i class="bi bi-search me-2"></i>岗位匹配
                            </a>
                            <a href="/register" class="btn btn-primary-hero btn-hero" sec:authorize="!isAuthenticated()">
                                <i class="bi bi-rocket me-2"></i>立即开始
                            </a>
                            <a href="#features" class="btn btn-outline-hero btn-hero">
                                <i class="bi bi-info-circle me-2"></i>了解更多
                            </a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 text-center">
                    <div class="hero-image mt-5 mt-lg-0">
                        <i class="bi bi-robot" style="font-size: 15rem; opacity: 0.8;"></i>
                    </div>
                </div>
            </div>
        </div>
    </section>
    
    <!-- Features Section -->
    <section id="features" class="features-section">
        <div class="container">
            <div class="row text-center mb-5">
                <div class="col-lg-8 mx-auto">
                    <h2 class="display-5 fw-bold mb-3">为什么选择 SimpleHire？</h2>
                    <p class="lead text-muted">
                        我们的AI技术为您提供全方位的简历分析和面试准备服务
                    </p>
                </div>
            </div>
            
            <div class="row g-4">
                <div class="col-lg-3 col-md-6">
                    <div class="card feature-card">
                        <div class="feature-icon ai">
                            <i class="bi bi-file-earmark-text"></i>
                        </div>
                        <h3 class="feature-title">简历信息提取</h3>
                        <p class="feature-description">
                            自动提取姓名、联系方式、教育经历、
                            工作经历、技能等关键信息。
                        </p>
                        <a href="/resume/analysis" class="btn btn-primary" sec:authorize="isAuthenticated()">
                            <i class="bi bi-rocket me-2"></i>
                            立即体验
                        </a>
                        <a href="/register" class="btn btn-primary" sec:authorize="!isAuthenticated()">
                            <i class="bi bi-person-plus me-2"></i>
                            注册使用
                        </a>
                    </div>
                </div>
                
                <div class="col-lg-3 col-md-6">
                    <div class="card feature-card">
                        <div class="feature-icon upload">
                            <i class="bi bi-cloud-upload"></i>
                        </div>
                        <h3 class="feature-title">多格式支持</h3>
                        <p class="feature-description">
                            支持PDF、DOCX格式简历上传，
                            也可直接粘贴简历文本进行分析。
                        </p>
                        <a href="/resume/analysis" class="btn btn-primary" sec:authorize="isAuthenticated()">
                            <i class="bi bi-upload me-2"></i>
                            开始上传
                        </a>
                        <a href="/register" class="btn btn-primary" sec:authorize="!isAuthenticated()">
                            <i class="bi bi-person-plus me-2"></i>
                            注册使用
                        </a>
                    </div>
                </div>
                
                <div class="col-lg-3 col-md-6">
                    <div class="card feature-card">
                        <div class="feature-icon analysis">
                            <i class="bi bi-cpu"></i>
                        </div>
                        <h3 class="feature-title">AI智能分析</h3>
                        <p class="feature-description">
                            基于DeepSeek大模型，深度分析简历内容，
                            提供结构化的信息展示。
                        </p>
                        <a href="/interview" class="btn btn-primary" sec:authorize="isAuthenticated()">
                            <i class="bi bi-chat-dots me-2"></i>
                            AI面试
                        </a>
                        <a href="/register" class="btn btn-primary" sec:authorize="!isAuthenticated()">
                            <i class="bi bi-person-plus me-2"></i>
                            注册使用
                        </a>
                    </div>
                </div>
                
                <div class="col-lg-3 col-md-6">
                    <div class="card feature-card">
                        <div class="feature-icon report">
                            <i class="bi bi-table"></i>
                        </div>
                        <h3 class="feature-title">结构化展示</h3>
                        <p class="feature-description">
                            以清晰的表格和卡片形式，
                            展示提取的简历关键信息。
                        </p>
                        <a href="/job-matching" class="btn btn-primary" sec:authorize="isAuthenticated()">
                            <i class="bi bi-search me-2"></i>
                            岗位匹配
                        </a>
                        <a href="/register" class="btn btn-primary" sec:authorize="!isAuthenticated()">
                            <i class="bi bi-person-plus me-2"></i>
                            注册使用
                        </a>
                    </div>
                </div>
            </div>
        </div>
    </section>
    
    <!-- Stats Section -->
    <section class="stats-section">
        <div class="container">
            <div class="row">
                <div class="col-lg-3 col-md-6">
                    <div class="stat-item">
                        <span class="stat-number">10K+</span>
                        <span class="stat-label">简历已分析</span>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="stat-item">
                        <span class="stat-number">95%</span>
                        <span class="stat-label">用户满意度</span>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="stat-item">
                        <span class="stat-number">24/7</span>
                        <span class="stat-label">全天候服务</span>
                    </div>
                </div>
                <div class="col-lg-3 col-md-6">
                    <div class="stat-item">
                        <span class="stat-number">5分钟</span>
                        <span class="stat-label">快速分析</span>
                    </div>
                </div>
            </div>
        </div>
    </section>
    
    <!-- CTA Section -->
    <section class="cta-section">
        <div class="container">
            <div class="cta-card">
                <h2 class="cta-title">准备好提升您的简历了吗？</h2>
                <p class="cta-subtitle">
                    立即开始使用SimpleHire，让AI帮助您打造完美简历，
                    在激烈的求职竞争中脱颖而出。
                </p>
                <div class="d-flex justify-content-center gap-3">
                    <a href="/register" class="btn btn-light btn-hero" sec:authorize="!isAuthenticated()">
                        <i class="bi bi-person-plus me-2"></i>免费注册
                    </a>
                    <a href="/interview" class="btn btn-light btn-hero" sec:authorize="isAuthenticated()">
                        <i class="bi bi-play-circle me-2"></i>开始面试
                    </a>
                    <a href="#features" class="btn btn-outline-light btn-hero">
                        <i class="bi bi-info-circle me-2"></i>了解更多
                    </a>
                </div>
            </div>
        </div>
    </section>
    
    <!-- Footer -->
    <footer class="footer">
        <div class="container">
            <div class="row">
                <div class="col-lg-4 mb-4">
                    <h5>
                        <i class="bi bi-robot me-2"></i>SimpleHire
                    </h5>
                    <p class="mb-3">
                        AI驱动的简历评分系统，助力HR高效筛选人才，
                        帮助求职者提升简历质量。
                    </p>
                    <div class="d-flex gap-3">
                        <a href="#" class="text-decoration-none">
                            <i class="bi bi-github fs-5"></i>
                        </a>
                        <a href="#" class="text-decoration-none">
                            <i class="bi bi-linkedin fs-5"></i>
                        </a>
                        <a href="#" class="text-decoration-none">
                            <i class="bi bi-twitter fs-5"></i>
                        </a>
                    </div>
                </div>
                
                <div class="col-lg-2 col-md-6 mb-4">
                    <h5>产品</h5>
                    <ul class="list-unstyled">
                        <li class="mb-2"><a href="/interview">AI面试</a></li>
                        <li class="mb-2"><a href="#features">功能特色</a></li>
                        <li class="mb-2"><a href="#">定价方案</a></li>
                    </ul>
                </div>
                
                <div class="col-lg-2 col-md-6 mb-4">
                    <h5>支持</h5>
                    <ul class="list-unstyled">
                        <li class="mb-2"><a href="#">帮助中心</a></li>
                        <li class="mb-2"><a href="#">联系我们</a></li>
                        <li class="mb-2"><a href="#">反馈建议</a></li>
                    </ul>
                </div>
                
                <div class="col-lg-2 col-md-6 mb-4">
                    <h5>公司</h5>
                    <ul class="list-unstyled">
                        <li class="mb-2"><a href="#">关于我们</a></li>
                        <li class="mb-2"><a href="#">隐私政策</a></li>
                        <li class="mb-2"><a href="#">服务条款</a></li>
                    </ul>
                </div>
                
                <div class="col-lg-2 col-md-6 mb-4">
                    <h5>资源</h5>
                    <ul class="list-unstyled">
                        <li class="mb-2"><a href="#">博客</a></li>
                        <li class="mb-2"><a href="#">API文档</a></li>
                        <li class="mb-2"><a href="#">开发者</a></li>
                    </ul>
                </div>
            </div>
            
            <hr class="my-4">
            
            <div class="row align-items-center">
                <div class="col-md-6">
                    <p class="mb-0">
                        &copy; 2024 SimpleHire. 保留所有权利。
                    </p>
                </div>
                <div class="col-md-6 text-md-end">
                    <p class="mb-0">
                        <small>Powered by DeepSeek AI</small>
                    </p>
                </div>
            </div>
        </div>
    </footer>
    
    <!-- Bootstrap JS -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // Smooth scrolling for anchor links
        document.querySelectorAll('a[href^="#"]').forEach(anchor => {
            anchor.addEventListener('click', function (e) {
                e.preventDefault();
                const target = document.querySelector(this.getAttribute('href'));
                if (target) {
                    target.scrollIntoView({
                        behavior: 'smooth',
                        block: 'start'
                    });
                }
            });
        });
        
        // Navbar background on scroll
        window.addEventListener('scroll', function() {
            const navbar = document.querySelector('.navbar');
            if (window.scrollY > 50) {
                navbar.style.background = 'rgba(255, 255, 255, 0.98)';
            } else {
                navbar.style.background = 'rgba(255, 255, 255, 0.95)';
            }
        });
        
        // Counter animation
        function animateCounters() {
            const counters = document.querySelectorAll('.stat-number');
            const speed = 200;
            
            counters.forEach(counter => {
                const target = counter.innerText;
                const isPercentage = target.includes('%');
                const isTime = target.includes('分钟');
                const isService = target.includes('24/7');
                const isCount = target.includes('K+');
                
                let finalValue;
                if (isPercentage) {
                    finalValue = parseInt(target);
                } else if (isCount) {
                    finalValue = parseInt(target);
                } else if (isTime) {
                    finalValue = parseInt(target);
                } else if (isService) {
                    return; // Skip animation for 24/7
                }
                
                let current = 0;
                const increment = finalValue / speed;
                
                const timer = setInterval(() => {
                    current += increment;
                    if (current >= finalValue) {
                        current = finalValue;
                        clearInterval(timer);
                    }
                    
                    if (isPercentage) {
                        counter.innerText = Math.floor(current) + '%';
                    } else if (isCount) {
                        counter.innerText = Math.floor(current) + 'K+';
                    } else if (isTime) {
                        counter.innerText = Math.floor(current) + '分钟';
                    }
                }, 10);
            });
        }
        
        // Trigger counter animation when stats section is visible
        const observer = new IntersectionObserver((entries) => {
            entries.forEach(entry => {
                if (entry.isIntersecting) {
                    animateCounters();
                    observer.unobserve(entry.target);
                }
            });
        });
        
        const statsSection = document.querySelector('.stats-section');
        if (statsSection) {
            observer.observe(statsSection);
        }
    </script>
</body>
</html>